import request from "./request";

export const playlistDetail = ({ id }) => {
  return request({
    url: "/playlist/detail",
    method: "get",
    params: {
      id,
    },
  });
};

export const gethotComments = ({ id }) => {
  return request({
    url: "/comment/hot",
    method: "get",
    params: {
      type: 2,
      id,
    },
  });
};

export const newComments = ({ id, offset }) => {
  return request({
    url: "/comment/playlist",
    method: "get",
    params: {
      id,
      limit: 5,
      offset,
    },
  });
};
